/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package snippet.lab6;

/**
 *
 * @author hoang.pt
 */
public class Computer {

    int id;

    String name;

    String brand;

    Double price;

    /**
     * constructor
     * @param id
     * @param name
     * @param brand
     * @param price
     */
    public Computer(int id, String name, String brand, Double price) {
        this.id = id;
        this.name = name;
        this.brand = brand;
        this.price = price;
    }


    @Override
    public String toString() {
        //"computer has name ='LAB 308'"
        return "Computer id = " +id+ ", name = ' "+name+" ', brand = '" +brand+ "', price = " +price+ "$";
    }


}
